package com.hsxshop.util;

import java.util.List;
import java.util.Map;

/**
 * Created by wangchongya on 17/7/19.
 */
public class AttributeTool {
    public static String getAttributeStr(List<Map> attributeMaps){
        String attriButeStr="";
        if(attributeMaps.size()>0){
            for (Map tempMap: attributeMaps) {
                String tempValue=tempMap.get("name").toString()+"："+tempMap.get("attrValue").toString();
                if("".equals(attriButeStr)){
                    attriButeStr=tempValue;
                }else{
                    attriButeStr=attriButeStr+"<br />"+tempValue;
                }
            }
        }
        return attriButeStr;
    }
}
